export const emptyToNull = (str: string | undefined | null): any => {
  if (typeof str === 'string') {
    return str.length === 0 ? null : str
  }

  return null
}
